import {createBrowserRouter} from 'react-router-dom'
import App from '../App'
import Home from '../pages/home/Index'
import Login from '../pages/login/Index'
import Todo from '../pages/todo/Index'
import Message from '../pages/message/Index'
import My from '../pages/my/Index'
import Hcp from '../pages/hcp/Index'
const routes=createBrowserRouter([
    {
        path:'/',
        element:<App/>,
        children:[
            {
                path:'home',
                element:<Home/>
            },
            {
                path:'todo',
                element:<Todo/>
            },
            {
                path:'message',
                element:<Message/>
            },
            {
                path:'my',
                element:<My/>
            },
            {
                path:'hcp',
                element:<Hcp/>
            },
        ]
    },{
        path:'/login',
        element:<Login/>
    }
])

export default routes;